package com.yj.springbootautoconfig.aotuconfig;


import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(name = "helloworld",havingValue = "true")
public class HelloWorldAutoConfiguration {

    @Bean
    public String hello(){
        return "hello world";
    }

}
